{if $builderMode}
	{if $theField.html}
		<div class="portlet htmlBlock" id="{$theField.b_field_sid}" btype="htmlBlock">
			<div class="b-actions"></div>
			<div class="portlet-header">Html Block</div>
			<div class="portlet-content">
				<fieldset>
					<div class="inputName">Html Block</div>
					<div class="inputField">
						<textarea name="{$theField.b_field_sid}" class="htmlBlock">{$theField.html}</textarea>
					</div>
				</fieldset>
			</div>
		</div>
	{elseif $theField.b_field_sid eq "keywords" || $theField.id eq "keywords"}
		<div class="portlet" id="keywords">
			<div class="b-actions"></div>
			<div class="portlet-header">[[FormFieldCaptions!Keywords]]</div>
			<div class="portlet-content">
				<fieldset>
					<div class="inputName">[[FormFieldCaptions!Keywords]]</div>
					<div class="inputField">{search property="keywords" type="bool" listingType=$listingTypeID}</div>
				</fieldset>
			</div>
		</div>
	{elseif $theField.b_field_sid eq "PostedWithin" || $theField.id eq "PostedWithin"}
		<div class="portlet" id="PostedWithin">
			<div class="b-actions"></div>
			<div class="portlet-header">[[Property_PostedWithin!Posted Within]]</div>
			<div class="portlet-content">
				<fieldset>
					<div class="inputName">[[Property_PostedWithin!Posted Within]]</div>
					<div class="inputField">{search property=PostedWithin template="list.date.tpl"}</div>
				</fieldset>
			</div>
		</div>
	{else}
		<div class="portlet" id="{$theField.sid}" {if $complexParent}complexparent="{$theField.field_sid}"{/if}>
			<div class="b-actions"></div>
			<div class="portlet-header">
				{if $theField.id eq "ZipCode"}
					[[FormFieldCaptions!Search Within]]
				{else}
					[[FormFieldCaptions!{$theField.caption}]]
				{/if}
			</div>
			<div class="portlet-content">
				<fieldset>
					<div class="inputName">
						{if $theField.id eq "ZipCode"}
							[[FormFieldCaptions!Search Within]]
						{else}
							[[FormFieldCaptions!{$theField.caption}]]
						{/if}
					</div>
					{if $complexParent}
						<div class="inputField">{search property=$theField.id complexParent=$complexParent}</div>
					{else}
						<div class="inputField">{search property=$theField.id}</div>
					{/if}
				</fieldset>
			</div>
		</div>
	{/if}
{else}   {* >>>>>>>>>>>>>> USUAL FORM >>>>>>>>>>>>> *}
	<fieldset>
		{if $theField.html}
			<div class="inputField">{$theField.html}</div>
		{elseif $theField.id eq "City"}
			<div class="inputName">[[FormFieldCaptions!{$theField.caption}]]</div>
			<div class="inputField">{search property=$theField.id template="string.like.tpl"}</div>
		{elseif $theField.b_field_sid eq "keywords"}
			<div class="inputName">[[FormFieldCaptions!Keywords]]</div>
			<div class="inputField">{search property="keywords" type="bool" listingType=$listingTypeID}</div>
		{elseif $theField.b_field_sid eq "PostedWithin"}
			<div class="inputName">[[Property_PostedWithin!Posted Within]]</div>
			<div class="inputField">{search property=PostedWithin template="list.date.tpl"}</div>
		{else}
			<div class="inputName">
				{if $theField.id eq "ZipCode"}
					[[FormFieldCaptions!Search Within]]
				{else}
					[[FormFieldCaptions!{$theField.caption}]]
				{/if}
			</div>
			{if $complexParent}
				<div class="inputField">{search property=$theField.id complexParent=$complexParent}</div>
			{else}
				<div class="inputField">{search property=$theField.id}</div>
			{/if}
		{/if}
	</fieldset>
{/if}